/* pages/detail/detail.wxss */
.detail {
  position: relative;
  width: 100%;
  background-color: var(--bgc-gray);
  box-sizing: border-box;
  .book-info {
    width: 100%;
    box-sizing: border-box;
    padding: 20rpx 30rpx;
    background-color: var(--bgc-white);

    .first {
      display: flex;
      justify-content: space-between;

      .img-box {
        width: 188rpx;
        min-width: 188rpx;
        aspect-ratio: 94/136;
      }

      .right {
        flex-grow: 1;
        margin-left: 20rpx;

        .title {
          font-size: 34rpx;
        }

        .cauter {
          font-size: 26rpx;
          margin: 20rpx 0;

          .category {
            color: var(--text-gray);
          }

          .author {
            color: var(--text-blue2);
          }
        }

        .click-count {
          font-size: 26rpx;
          color: var(--text-gray);
          margin-bottom: 20rpx;
        }

        .price {
          font-size: 30rpx;
          color: var(--text-red);
        }
      }
    }

    .des {
      position: relative;
      font-size: 28rpx;
      color: var(--text-gray);
      -webkit-line-clamp: 3;
      margin: 20rpx 0;

      .icon {
        position: absolute;
        right: 0;
        bottom: 0;
      }

      .tag {
        margin: 20rpx 0;

        >text {
          color: var(--text-blue);
        }
      }
    }

    .chapter {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 40rpx;
      color: var(--text-gray);
      border-top: 2rpx solid var(--border-gray);
      padding-top: 20rpx;

      .text {
        flex-grow: 1;
        font-size: 28rpx;
        color: var(--text-black);
        margin-left: 20rpx;
      }

      .tag {
        font-size: 24rpx;
        color: var(--text-green1);
        margin-top: 2rpx;
      }
    }
  }

  .comments {
    width: 100%;
    margin-top: 20rpx;
    background-color: var(--bgc-white);
    box-sizing: border-box;
    padding: 30rpx 0;

    .comments-header {
      width: 100%;
      color: var(--text-gray);
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20rpx;

      .title {
        font-size: 36rpx;
        position: relative;
        padding: 0 20rpx;
        line-height: 36rpx;

        &::before {
          position: absolute;
          left: 0;
          bottom: 4rpx;
          content: "";
          width: 8rpx;
          height: 28rpx;
          background-color: var(--text-gray);
          border-radius: 4rpx;
        }
      }

      .btn {
        font-size: 40rpx;
        display: flex;
        align-items: center;
        padding: 4rpx 10rpx;
        border: 2rpx solid var(--text-black);
        border-radius: 8rpx;

        >view {
          font-size: 26rpx;
        }
      }
    }

    .comments-content {
      >view {
        margin: 40rpx 0;
      }

      .btn {
        width: 290rpx;
        height: 72rpx;
        box-sizing: border-box;
        border: 2rpx solid var(--text-gray);
        font-size: 34rpx;
        line-height: 72rpx;
        text-align: center;
        color: var(--text-gray);
        border-radius: 8rpx;
        margin: 100rpx auto 40rpx;
      }
    }
  }

  .footer {
    position: fixed;
    width: 100%;
    height: 100rpx;
    left: 0;
    bottom: 0;
    z-index: 100;
    background-color: var(--bgc-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4rpx solid var(--border-gray);
    font-size: 34rpx;

    >view {
      flex: 1;
      height: 100%;
      line-height: 100rpx;
      text-align: center;
      opacity: 1;
    }

    .bgc-yellow {
      background-color: var(--bgc-yellow);
      color: var(--text-white);
    }
  }

  .popup {
    width: 100%;
    height: 100%;
    background-color: var(--bgc-gray6);

    .text {
      padding: 40rpx 0;
      text-align: center;
    }

    .popup-icon {
      width: 100%;
      box-sizing: border-box;
      overflow: scroll;

      &::-webkit-scrollbar {
        display: none;
      }

      .select {
        width: max-content;
        height: 100%;
        display: flex;
        justify-content: center;

        >view {
          margin: 0 30rpx;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;

          .img-box {
            width: 104rpx;
            min-width: 104rpx;
            height: 104rpx;
            border-radius: 24rpx;
            overflow: hidden;
          }

          .name {
            margin-top: 20rpx;
            font-size: 24rpx;
            text-align: center;
          }

          &:nth-child(2) {
            margin: 0 6rpx;
          }
        }
      }
    }

    .btn {
      width: 100%;
      height: 100rpx;
      margin-top: 40rpx;
      line-height: 100rpx;
      font-size: 34rpx;
      text-align: center;
      box-sizing: border-box;
      border-top: 2rpx solid #dfdfdf;
    }
  }
}